import { TypeOrmModuleOptions } from '@nestjs/typeorm';

export const databaseConfig: TypeOrmModuleOptions = {
  type: 'postgres',
  host: '14.103.182.5',
  port: 5432,
  username: 'postgres',
  password: 'Hao758258..',
  database: 'butler_db',
  entities: [__dirname + '/../**/*.entity{.ts,.js}'],
  synchronize: true, // 开发环境使用，生产环境请关闭
  logging: true,
}; 